package com.fyzk.betzhushu.klsf;

import com.fyzk.activity.lottery.shuzicai.BallInfo;
import com.fyzk.betzhushu.ZhuShuBase;

import java.util.List;

/**
 * Created by miao on 2016/12/21.
 * 二连直玩法注数
 */
public class KLSFSelTwoStraightZhushu extends ZhuShuBase{

    @Override
    public long betZhuShu(List<List<BallInfo>> balls) {

        int zhushu = 1;
        for (int i = 0; i < balls.size(); i++) {
            int j = 0;
            List<BallInfo> infos = balls.get(i);
            for (BallInfo info : infos) {
                if (info.isSelected()) {
                    j++;
                }
            }
            zhushu *= j;
        }

        return zhushu;
    }

}
